<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<#assign path=request.contextPath />
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>采购订单打印</title>
</head>

<body style="font-family:'Microsoft YaHei';">
<div style="width: 100%;text-align: center">采购订单</div>
<table style="width: 90%;text-align: center;border: 1px">
    <thead>
    <tr>
        <th style="text-align: right">订单编号:</th>
        <td style="text-align: left">${(imsPpo.id)!}</td>
        <th style="text-align: right">供应商:</th>
        <td style="text-align: left">${(imsPpo.comName)!}</td>
        <th style="text-align: right">采购员:</th>
        <td style="text-align: left">${(imsPpo.empChiName)!}</td>
        <th style="text-align: right">单据日期:</th>
        <td style="text-align: left">${imsPpo.bllDate?datetime}</td>
        <th style="text-align: right">到期日:</th>
        <td style="text-align: left">${imsPpo.bllDueDate?string("yyyy-MM-dd HH:mm:ss")}</td>
    </tr>
    <tr>
        <td>序号</td>
        <td>商品名称</td>
        <td>商品编号</td>
        <td>仓库</td>
        <td>单位</td>
        <td>单价</td>
        <td>数量</td>
        <td>折扣率（%）</td>
        <td>折扣额</td>
        <td>金额</td>
    </tr>
    </thead>
    <tbody>
    <#list (imsPpo.imsPpoItems)! as item>
    <tr>
        <td>${(item.id)!}</td>
        <td>${(item.itmName)!}</td>
        <td>${(item.productId)!}</td>
        <td>${(item.warehouseName)!}</td>
        <td>${(item.unitGroupName)!}</td>
        <td>${(item.unitPrice)!}</td>
        <td>${(item.itmQty)!}</td>
        <td>${(item.discountRate)!}</td>
        <td>${(item.discountAmt)!}</td>
        <td>${(item.itmAmt)!}</td>
    </tr>
    </#list>
    </tbody>
    <tfoot>
    <tr>
        <th>合计:</th>
        <td style="text-align: left">${(imsPpo.ttlAmt)!}</td>
    </tr>
    <tr>
        <th>备注:</th>
        <td style="text-align: left">${(imsPpo.remark)!}</td>
    </tr>
    </tfoot>
</table>
<a href="${path}/freemarker" target="_blank">打印</a>
</body>
</html>
